package com.itheima.byteStream;

import java.io.BufferedOutputStream;
import java.io.FileNotFoundException;
import java.io.FileOutputStream;
import java.io.IOException;

/*
字节缓冲流

 */
public class Demo08 {

    public static void main(String[] args) throws IOException {
        BufferedOutputStream bos = new BufferedOutputStream(new FileOutputStream("day12\\aaa\\bbb.txt"));
        bos.write(97);
        bos.flush();
        byte[] bytes = {98, 99, 100, 101, 102,103};
        bos.write(bytes);
        bos.flush();
        bos.write(bytes,3,3);
        bos.close();

    }
}
